package com.jrx.anytxn.transaction.dto.payment;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Repayment implements Serializable {
    /**
     * 还款交易流水号
     */
    private String paymentSeqNo;
    /**
     * 还款账户
     */
    private String paymentCardNo;
    /**
     * 还款类型 01.主动还款 02.自动代扣 03.退款
     */
    private String paymentType;
    /**
     * 还款交易状态 S 成功 P 处理中
     */
    private String sumStatus;
    /**
     * 还款金额
     */
    private BigDecimal repayAmount;
    /**
     * 还款日期
     */
    private Date repayDate;
    /**
     * 扣款发起时间 yyyy-MM-dd HH:mm:ss
     */
    private String launchTime;
    /**
     * 订单号 (只有退款才填写订单号)
     */
    private String loanId;
    /**
     * 业务日期(只有退款才填写订单号)
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date businessDate;
    /**
     * 贷款金额 (只有退款才填写订单号)
     */
    private BigDecimal loanAmount;
    /**
     * 交易时间 yyyy-MM-dd HH:mm:ss (只有退款才填写订单号)
     */
    private String txnTime;//交易时间
    /**
     * 订单描述 (只有退款才填写订单号)
     */
    private String description;
    /**
     * 订单描述 (只有退款才填写订单号)
     */
    private String paymentMode;



    public String getPaymentSeqNo() {
        return paymentSeqNo;
    }

    public void setPaymentSeqNo(String paymentSeqNo) {
        this.paymentSeqNo = paymentSeqNo;
    }

    public String getPaymentCardNo() {
        return paymentCardNo;
    }

    public void setPaymentCardNo(String paymentCardNo) {
        this.paymentCardNo = paymentCardNo;
    }

    public String getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(String paymentType) {
        this.paymentType = paymentType;
    }

    public String getSumStatus() {
        return sumStatus;
    }

    public void setSumStatus(String sumStatus) {
        this.sumStatus = sumStatus;
    }

    public BigDecimal getRepayAmount() {
        return repayAmount;
    }

    public void setRepayAmount(BigDecimal repayAmount) {
        this.repayAmount = repayAmount;
    }

    public Date getRepayDate() {
        return repayDate;
    }

    public void setRepayDate(Date repayDate) {
        this.repayDate = repayDate;
    }

    public String getLaunchTime() {
        return launchTime;
    }

    public void setLaunchTime(String launchTime) {
        this.launchTime = launchTime;
    }

    public String getLoanId() {
        return loanId;
    }

    public void setLoanId(String loanId) {
        this.loanId = loanId;
    }

    public Date getBusinessDate() {
        return businessDate;
    }

    public void setBusinessDate(Date businessDate) {
        this.businessDate = businessDate;
    }

    public BigDecimal getLoanAmount() {
        return loanAmount;
    }

    public void setLoanAmount(BigDecimal loanAmount) {
        this.loanAmount = loanAmount;
    }

    public String getTxnTime() {
        return txnTime;
    }

    public void setTxnTime(String txnTime) {
        this.txnTime = txnTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPaymentMode() {
        return paymentMode;
    }

    public void setPaymentMode(String paymentMode) {
        this.paymentMode = paymentMode;
    }
}
